﻿using MyCompany.MyProject.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;

namespace MyCompany.MyProject.Common.HttpContextUser
{
    public interface IUser
    {
        string Name { get; }
        long ID {  get; }
        long TenantId { get;  }
        bool IsAuthenticated();
        IEnumerable<Claim> GetClaimsIdentity();
        List<string> GetClaimValueByType(string claimType);
        string GetToken();
        List<string> GetUserInfoFromToken(string claimType);

        MessageModel<string> MessageModel { get; set; }
    }
}
